<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>embedme: src/SerialPort.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">embedme
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#enum-members">Enumerations</a>  </div>
  <div class="headertitle">
<div class="title">SerialPort.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>串口  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="_i_o_device_8h_source.html">IODevice.h</a>&quot;</code><br />
<code>#include &lt;termios.h&gt;</code><br />
<code>#include &lt;unistd.h&gt;</code><br />
</div>
<p><a href="_serial_port_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlibemb_1_1_serial_port_attr.html">libemb::SerialPortAttr</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">串口属性  <a href="structlibemb_1_1_serial_port_attr.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_serial_port.html">libemb::SerialPort</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">串口设备类.  <a href="classlibemb_1_1_serial_port.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:a3dfa274f1e332bd7d4d15c87e7897330"><td class="memItemLeft" align="right" valign="top"><a id="a3dfa274f1e332bd7d4d15c87e7897330"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_serial_port_8h.html#a3dfa274f1e332bd7d4d15c87e7897330">libemb::BAUDRATE_E</a> { <br />
&#160;&#160;<b>BAUDRATE_1200</b> = 1200, 
<b>BAUDRATE_2400</b> = 2400, 
<b>BAUDRATE_4800</b> = 4800, 
<b>BAUDRATE_9600</b> = 9600, 
<br />
&#160;&#160;<b>BAUDRATE_19200</b> = 19200, 
<b>BAUDRATE_38400</b> = 38400, 
<b>BAUDRATE_57600</b> = 57600, 
<b>BAUDRATE_115200</b> = 115200, 
<br />
&#160;&#160;<b>BAUDRATE_460800</b> = 460800
<br />
 }</td></tr>
<tr class="memdesc:a3dfa274f1e332bd7d4d15c87e7897330"><td class="mdescLeft">&#160;</td><td class="mdescRight">串口波特率 <br /></td></tr>
<tr class="separator:a3dfa274f1e332bd7d4d15c87e7897330"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9d1985d4b11922828cdff21ae71d30d"><td class="memItemLeft" align="right" valign="top"><a id="ac9d1985d4b11922828cdff21ae71d30d"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_serial_port_8h.html#ac9d1985d4b11922828cdff21ae71d30d">libemb::DATABITS_E</a> { <b>DATABITS_5</b> =5, 
<b>DATABITS_6</b>, 
<b>DATABITS_7</b>, 
<b>DATABITS_8</b>
 }</td></tr>
<tr class="memdesc:ac9d1985d4b11922828cdff21ae71d30d"><td class="mdescLeft">&#160;</td><td class="mdescRight">串口数据位 <br /></td></tr>
<tr class="separator:ac9d1985d4b11922828cdff21ae71d30d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ac019369c928a76ff51641dee45d1ee"><td class="memItemLeft" align="right" valign="top"><a id="a7ac019369c928a76ff51641dee45d1ee"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_serial_port_8h.html#a7ac019369c928a76ff51641dee45d1ee">libemb::STOPBITS_E</a> { <b>STOPBITS_1</b> =1, 
<b>STOPBITS_2</b>
 }</td></tr>
<tr class="memdesc:a7ac019369c928a76ff51641dee45d1ee"><td class="mdescLeft">&#160;</td><td class="mdescRight">串口停止位 <br /></td></tr>
<tr class="separator:a7ac019369c928a76ff51641dee45d1ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab23d6577aff534964eaab1b14f8ddf68"><td class="memItemLeft" align="right" valign="top"><a id="ab23d6577aff534964eaab1b14f8ddf68"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_serial_port_8h.html#ab23d6577aff534964eaab1b14f8ddf68">libemb::PARITY_E</a> { <b>PARITY_NONE</b> =0, 
<b>PARITY_ODD</b>, 
<b>PARITY_EVEN</b>, 
<b>PARITY_SPACE</b>
 }</td></tr>
<tr class="memdesc:ab23d6577aff534964eaab1b14f8ddf68"><td class="mdescLeft">&#160;</td><td class="mdescRight">串口校验位值 <br /></td></tr>
<tr class="separator:ab23d6577aff534964eaab1b14f8ddf68"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af20f4af9184ce6643dd695420f570108"><td class="memItemLeft" align="right" valign="top"><a id="af20f4af9184ce6643dd695420f570108"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_serial_port_8h.html#af20f4af9184ce6643dd695420f570108">libemb::FLOWCTRL_E</a> { <b>FLOWCTRL_NONE</b> =0, 
<b>FLOWCTRL_HW</b>, 
<b>FLOWCTRL_SW</b>
 }</td></tr>
<tr class="memdesc:af20f4af9184ce6643dd695420f570108"><td class="mdescLeft">&#160;</td><td class="mdescRight">串口流控位值 <br /></td></tr>
<tr class="separator:af20f4af9184ce6643dd695420f570108"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34383572cf21bca7734b420b533ff7fd"><td class="memItemLeft" align="right" valign="top"><a id="a34383572cf21bca7734b420b533ff7fd"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_serial_port_8h.html#a34383572cf21bca7734b420b533ff7fd">libemb::DATAMODE_E</a> { <b>DATAMODE_RS232</b> =0, 
<b>DATAMODE_RS422</b>, 
<b>DATAMODE_RS485</b>
 }</td></tr>
<tr class="memdesc:a34383572cf21bca7734b420b533ff7fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">串口模式 <br /></td></tr>
<tr class="separator:a34383572cf21bca7734b420b533ff7fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae75ec1950cba8a5d377eb0adcdaf1741"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_serial_port_8h.html#ae75ec1950cba8a5d377eb0adcdaf1741">libemb::RS485DIR_E</a> { <b>RS485DIR_RX</b> =0, 
<b>RS485DIR_TX</b>
 }</td></tr>
<tr class="memdesc:ae75ec1950cba8a5d377eb0adcdaf1741"><td class="mdescLeft">&#160;</td><td class="mdescRight">RS485方向属性  <a href="_serial_port_8h.html#ae75ec1950cba8a5d377eb0adcdaf1741">More...</a><br /></td></tr>
<tr class="separator:ae75ec1950cba8a5d377eb0adcdaf1741"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>串口 </p>
</div><h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="ae75ec1950cba8a5d377eb0adcdaf1741"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae75ec1950cba8a5d377eb0adcdaf1741">&#9670;&nbsp;</a></span>RS485DIR_E</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="_serial_port_8h.html#ae75ec1950cba8a5d377eb0adcdaf1741">libemb::RS485DIR_E</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>RS485方向属性 </p>
<dl class="section note"><dt>Note</dt><dd>由于RS485是半双工的,读写前需要设置方向 </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
